<?php
include('../includes/config.php');
include('../includes/va_db.php');

$tb = $_GET['tb'];
$id = $_GET['id'];
$value = $_GET['value'];

if($tb && is_numeric($id) && is_numeric($value))
{
	$arr['group'] = $value;	
	vaUpdate($tb, $arr, ' id ='.$id);
}
 
/*if(is_numeric($id) && is_numeric($value))
{
	$arr1['odr_status'] = $value;
	
	if($value == 2)
		$arr1['odr_view'] = 1;
	else
		$arr1['odr_view'] = 0;
	
	$date = date( "Y-m-d G:i:s", time());
	$arr1['odr_last_update_date'] = $date;
	
	vaUpdate('orders',$arr1,' odr_id ='.$id);
}*/

?>

